package wxdb.metadata;

import java.io.Serializable;
import java.util.ArrayList;

public class DbInfo implements Serializable{
	private int dbid;
	private int tableNum;
	private ArrayList<String> tableList = new ArrayList<String>();
	
	public DbInfo(int dbid, int tableNum){
		this.dbid = dbid;
		this.tableNum = tableNum;
	}
	
	public void addTable(String tblname){
		tableList.add(tblname);
	}
	
	public ArrayList<String> getTables(){
		return tableList;
	}
	
	public int getDbid(){
		return dbid;
	}
	
	public int getTabelNum(){
		return tableNum;
	}
	
	public void setDbid(int dbid){
		this.dbid = dbid;
	}
	
	public void setTableNum(int num){
		this.tableNum = num;
	}
}
